import request from '@/utils/request'

// 查询翻译工具列表
export function listPersonalTranslate(query) {
  return request({
    url: '/amz/personalTranslate/list',
    method: 'get',
    params: query
  })
}

// 查询翻译工具详细
export function getPersonalTranslate(id) {
  return request({
    url: '/amz/personalTranslate/' + id,
    method: 'get'
  })
}

// 新增翻译工具
export function addPersonalTranslate(data) {
  return request({
    url: '/amz/personalTranslate',
    method: 'post',
    data: data
  })
}

// 修改翻译工具
export function updatePersonalTranslate(data) {
  return request({
    url: '/amz/personalTranslate',
    method: 'put',
    data: data
  })
}

// 删除翻译工具
export function delPersonalTranslate(id) {
  return request({
    url: '/amz/personalTranslate/' + id,
    method: 'delete'
  })
}

// 导出翻译工具
export function exportPersonalTranslate(query) {
  return request({
    url: '/amz/personalTranslate/export',
    method: 'get',
    params: query
  })
}